package shuati.shuzimali;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.Arrays;

/**
 * @author : LdLtd
 * @Date : 2024/4/14
 * @Description:1 ． 字 符 串 排 序 输 入 一 行 字 符 串 ， 按 升 序 输 出
 */
public class q2301 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        StreamTokenizer st = new StreamTokenizer(br);

        String s = br.readLine();
        String[] split = s.split(",");
        Arrays.sort(split);
        //dictionarySort(s);
        for (String string : split) {
            System.out.print(string);
        }

    }
    public static void dictionarySort(String[] strings) {
        int n = strings.length;
        for (int i = 1; i < n; i++) {
            String key = strings[i];
            int j = i - 1;
            // 比较当前字符串与已排序部分的字符串，如果当前字符串较小，将它插入到正确的位置
            while (j >= 0 && strings[j].compareTo(key) > 0) {
                strings[j + 1] = strings[j];
                j--;
            }
            strings[j + 1] = key;
        }
    }
}
